package com.ocm.tourism.core.domain;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.beans.factory.annotation.Configurable;

@Entity
@Configurable
public class CataloguesFileInfo extends Catalogues{

   @OneToOne(cascade=CascadeType.ALL)
   private FileInfo avatar;

   public FileInfo getAvatar() {
      return avatar;
   }

   public void setAvatar(FileInfo avatar) {
      this.avatar = avatar;
   }

   public String toString() {
      return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
   }

}
